﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Hyt.Web.Mvc
{
    public class HytRazorViewEngine : RazorViewEngine
    {
        public HytRazorViewEngine() : base()
        {
            var areas=this.AreaMasterLocationFormats.ToList();
            areas.AddRange(new string[]
            {
                "~/Bin/{2}/Views/{1}/{0}.cshtml"
            });
            this.AreaMasterLocationFormats = areas.ToArray();


            var locations = this.ViewLocationFormats.ToList();
            locations.AddRange(new string[]
            {
                "~/Bin/{1}/{0}.cshtml"
            });
            this.ViewLocationFormats = locations.ToArray();

        }
    }
}
